package com.jumi.microservice.material.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.jumi.microservice.material.domain.JmMaterialAttributeValue;
import com.jumi.microservice.material.domain.example.JmMaterialAttributeValueExample;

/**
 * @description: 商品属性值Mapper接口
 * @author: ZhangY
 */
@Repository
public interface JmMaterialAttributeValueMapper
{
	/**
	 * @Description: 根据主键删除
	 * @Param: [attrvalueId]
	 * @Return: int
	 */
	int deleteByPrimaryKey(@Param("attrValueId") Integer attrvalueId, @Param("updateBy") String updateBy);

	/**
	 * @Description: 保存一条数据
	 * @Param: [attrValue]
	 * @Return: int
	 */
	int insertSelective(JmMaterialAttributeValue attrValue);

	/**
	 * @Description: 条件查询
	 * @Param: [example]
	 * @Return: java.util.List<com.jumi.microservice.material.domain.AttrValue>
	 */
	List<JmMaterialAttributeValue> selectByExample(JmMaterialAttributeValueExample example);

	/**
	 * @Description: 根据主键查询
	 * @Param: [attrvalueId]
	 * @Return: com.jumi.microservice.material.domain.AttrValue
	 */
	JmMaterialAttributeValue selectByPrimaryKey(Integer attrvalueId);

	/**
	 * @Description: 更新一条数据
	 * @Param: [attrValue]
	 * @Return: int
	 */
	int updateByPrimaryKeySelective(JmMaterialAttributeValue attrValue);
}